﻿using System.Web.Optimization;

namespace ITTestingSystem
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/scripts/base")
                .Include
                (
                    "~/Content/scripts/jquery/jquery-2.1.1.js",
                    "~/Content/scripts/jquery/jquery.unobtrusive-ajax.js",
                    "~/Content/scripts/jquery/jquery.validate.js",
                    "~/Content/scripts/jquery/jquery.validate.unobtrusive.js",
                    "~/Content/bootstrap/js/bootstrap.js"
                ));

            bundles.Add(new StyleBundle("~/bundles/styles/client")
                .Include
                (
                    "~/Content/css/*.css"
                ));

            bundles.Add(new ScriptBundle("~/bundles/scripts/client")
                .Include
                (
                    "~/Content/scripts/*.js"
                ));

            bundles.Add(new StyleBundle("~/bundles/styles/admin")
                .Include
                (
                    "~/Areas/Admin/Content/css/*.css"
                ));

            bundles.Add(new ScriptBundle("~/bundles/scripts/admin")
                .Include
                (
                    "~/Areas/Admin/Content/scripts/*.js"
                ));
        }
    }
}